package 线程;

import jdk.nashorn.internal.ir.BinaryNode;
import sun.nio.ch.ThreadPool;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
import java.util.Timer;
import java.util.concurrent.*;

/**
 * @author:谢君臣
 * @Date:2021/8/27-21:02
 * @version:1.0
 * @function:
 */
public class test {
    public static void main(String[] args) {
        ScheduledExecutorService scheduled = Executors.newScheduledThreadPool(10);
//        scheduled.scheduleAtFixedRate(()->{
//            System.out.println("a");
//        },1,1,TimeUnit.SECONDS);
        LocalDateTime time = LocalDateTime.now();
        System.out.println(time);
        LocalDateTime time1 = time.withHour(12);
        if (time1.compareTo(LocalDateTime.now())>0) {
            System.out.println(time.plusWeeks(1));
        }
    }
}
enum Thread_state{
    RUNNING,SHUTDOWN,STOP,TIDYING,TERMINATED;
}